﻿function emailMatchRegex(emailTxt) {
    var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
    if (!emailReg.test(emailTxt)) {
        return false;
    }
    return true;
}